<template>
  <div class="d">
    <h1>D组件</h1>
    <p>A组件z：{{ z }}</p>
    <button @click="handleBtn">按钮</button>
  </div>
</template>
<script>
export default {
  methods: {
    handleBtn() {
      this.$emit('refresh', 'DDD')

      
    }
  },
  props: ['z']
}
</script>